import yaml
from config.path import config_yaml_file


def read_yaml(fpath):
    """fpath为yaml的文件路径"""
    with open(fpath, encoding="utf-8")as f:
        data = yaml.safe_load(f)
        return data


print(config_yaml_file)
# 获取yaml配置下的信息
result = read_yaml(config_yaml_file)
print(result)